# Contributor:
# Maintainer:
pkgname=xva-img
pkgver=1.5
pkgrel=0
pkgdesc="tool for converting XVA images"
url="https://github.com/eriklax/xva-img"
arch="all"
license="GPL-2.0-or-later"
makedepends="openssl-dev>3 cmake xxhash-dev"
source="xva-img-$pkgver.tar.gz::https://github.com/eriklax/xva-img/archive/$pkgver.tar.gz"

build() {
	cmake -B build . \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DPREFIX=/usr
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="
0d72c9e7f626c0c8f8d85e36c0810feef2448b68c144579b0dbc8983d6eadb4c1d887991d9bc05feb9be8814ea329737385a37404ee1a64797bec576843c394e  xva-img-1.5.tar.gz
"
